<div class="dataTables_title">
	<div class="dataTables_title_left">调拨详情</div>
</div>
<div class="widget" style="margin:0px;">
	<div class="widget-content">
	<form>
		<div class="table-title">
			<input type="hidden" id="apply_code" value="${(allocate.code)!''}"/>
			
			<table class="table table-bordered animate2 fadeInUp">
				<tr><td>单据编号：${(allocate.dn)!''}</td></tr>
				<td>出库仓库：${(allocate.odn)!''}</td>
				<td>入库仓库：${(allocate.idn)!''}</td>
				<tr><td>创建人：${(allocate.cn)!''}</td>
				<td>创建时间：${(allocate.ct)!''}</td></tr>
				<tr><td>确认人：${(allocate.cname)!'<font style="color:red;">还没确认</font>'}</td>
				<td>确认时间：${(allocate.cvt)!'<font style="color:red;">还没确认</font>'}</td></tr>
			</table>
			
			<table class="table table-bordered animate2 fadeInUp">
				<thead>
					<tr>
						<th>商品名称</th>
						<th>序列号状态</th>
						<th>调拨数量</th>
						<th>单价</th>
						
					</tr>
				</thead>
				<tbody>
				<#if allocate??>
					<#list allocate.itemList as item>
						<tr>
							<td>${(item.cname)!''}</td>
							<td><#if item.snc == 1>无需序列号<#elseif item.snc == 2>同类序列号<#elseif item.snc == 3>唯一序列号</#if></td>
							<td>${(item.count)!''}</td>
							<td>${(item.price)!''}</td>
						</tr>
						<tr>
							<td colspan="4" style="color:green;">序列号:&nbsp
								<#if (item.detailList?? && item.detailList?size gt 0)>
									<#list item.detailList as detail>
										<div class="filter-table">
											<a href="javascript:;" style="font-weight:bold;">${(detail.serial)!''}</a>&nbsp;&nbsp;&nbsp;&nbsp;
										</div>
									</#list>
								<#else>
									<font style="color:red;">此商品不需要序列号</font>&nbsp;
								</#if>
							</td>
						</tr>
					</#list>
				</#if>
				<tr>
					<td colspan="4" style="text-align: center">
						<#if allocate.cvc??>
						<a class="btn btn-primary" href="javascript:;" onclick="javascript: $.fn.colorbox.close();">已确认</a>
						<#elseif allocate.ioc = cu_organCode && !allocate.cvc??>
						<a class="btn btn-primary" href="javascript:;" onclick="javascript: verify_invAllocate(${(allocate.code)!''}); $.fn.colorbox.close();">确认</a>
						</#if>
						<a class="btn btn-info" href="javascript:;" onclick="javascript: $.fn.colorbox.close();">关闭</a>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
		</form>
	</div>
</div>
